Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent non-node types from being output in the query analyzer list type keys #2691

Conversation

jasonbahl
Copy link
Collaborator

@jasonbahl jasonbahl commented Jan 11, 2023

What does this implement/fix? Explain your changes.

This prevents list types from being returned in the query analyzer if the type isn't a type that implements the node interface.

failing test: https://github.com/wp-graphql/wp-graphql/actions/runs/3897357240/jobs/6654945889
passing test: https://github.com/wp-graphql/wp-graphql/actions/runs/3897472140/jobs/6655191024

Does this close any currently open issues?

closes #2690

@jasonbahl jasonbahl self-assigned this Jan 11, 2023
@coveralls
Copy link

coveralls commented Jan 11, 2023

Coverage Status

Coverage: 84.751% (-0.008%) from 84.759% when pulling 12fb5b2 on jasonbahl:fix/#2690-prevent-non-node-types-from-being-output-in-query-analyzer into 3cd6a6c on wp-graphql:develop.

@codeclimate
Copy link

codeclimate bot commented Jan 11, 2023

Code Climate has analyzed commit 12fb5b2 and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 2

View more on Code Climate.

@jasonbahl jasonbahl merged commit 7b6ce9b into wp-graphql:develop Jan 12, 2023
This was referenced Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Query Analyzer is outputting list types even if the types are not nodes
2 participants